import request from '@/utils/request'

// 查询清运单明细列表
export function listWaybilldetail(query) {
  return request({
    url: '/system/waybilldetail/list',
    method: 'get',
    params: query
  })
}

// 查询清运单明细详细
export function getWaybilldetail(billid) {
  return request({
    url: '/system/waybilldetail/' + billid,
    method: 'get'
  })
}

// 新增清运单明细
export function addWaybilldetail(data) {
  return request({
    url: '/system/waybilldetail',
    method: 'post',
    data: data
  })
}

// 修改清运单明细
export function updateWaybilldetail(data) {
  return request({
    url: '/system/waybilldetail',
    method: 'put',
    data: data
  })
}

// 删除清运单明细
export function delWaybilldetail(billid) {
  return request({
    url: '/system/waybilldetail/' + billid,
    method: 'delete'
  })
}
